import request from "../axios";
const url = '/blog/blog'

const api = {
    //列表
    getlist(params: any) {
        return request({
            url: `${url}/list`,
            method: "get",
            params: params,
        });
    },
    //实体
    getmodel(params: any) {
        return request({
            url: `${url}/model`,
            method: "get",
            params: params,
        });
    },
    //阅读
    readBlog(data: any) {
        return request({
            url: `${url}/readBlog`,
            method: "post",
            data: data,
        })
    },
    //获取博客类型数量
    getBlogTypeNum() {
        return request({
            url: `${url}/getBlogTypeNum`,
            method: "get",
        })
    },
    //获取博客标签数量
    getBlogTagNum() {
        return request({
            url: `${url}/getBlogTagNum`,
            method: "get",
        })
    }
};

export default api;
